package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Vip implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //对应用户id
    private Long userId;

    //会员等级：青铜，白银，黄金，钻石
    private String level;

    //初次开通会员的时间
    private LocalDateTime createTime;

    //最近一次的会员生效时间
    private LocalDateTime startTime;

    //最近一次的会员失效时间
    private LocalDateTime endTime;

    //更新时间
    private LocalDateTime updateTime;
} 